package model;

import java.util.ArrayList;

public class Deck {
	
	//nom du deck
	private String nom;
	
	//cartes composant le deck
	private ArrayList<Carte> carte;
	
	public Deck (String nom){
		this.nom=nom;
		
		this.carte=new ArrayList<Carte>();
	}
	
	public boolean is_vide() {
		return this.carte.size()==0;
	}
	
	public Carte piocher() {
		
		int i = (int) Math.random()*this.carte.size();
		Carte c= this.carte.get(i);
		this.carte.remove(i);
		int pouet = 2;
		
		
		return c;
		
	}
}
